<template>
  <div class="onekit-radio-group"
       :class="onekitClass"
       :style="onekitStyle"
       :id="onekitId">
    <slot></slot>
  </div>
</template>

<script>
import weixin_behavior from "../../behaviors/weixin_behavior"
import onekit_behavior from "../../behaviors/onekit_behavior"
import eventBus from '../../api/EventBus'
export default {
  name: "onekit-radio-group",
  mixins: [weixin_behavior, onekit_behavior],
  mounted () {
    eventBus.$on('itemclick', data => {
      this.$emit('Change', data)
      eventBus.$emit('radio-cancel', data.detail.value)
      eventBus.$emit('onekit-radio-submit', data.detail.value)
    })
  }
}
</script>

<style>
</style>
